package cn.atzxc.qy.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class OrderVo
{
    private static final long serialVersionUID = 1L;

//    /** 订单编号 */
//    @TableId(value = "order_id", type = IdType.AUTO)
//    private Long orderId;
//    /** 所属用户ID */
//    @TableField("user_id")
//    private Long userId;
//    /** 任务ID */
//    @TableField("task_id")
//    private Long taskId;
//    /** 骑手ID */
//    @TableField("courier_id")
//    private Long courierId;
//    /** 分类ID */
//    @TableField("category_id")
//    private Long CategoryId;
//    /** 退款信息ID */
//    @TableField("refund_id")
//    private Long refundId;
//    /** 起始地址ID */
//    @TableField("order_addressHome")
//    private Long orderAddressHome;
//    /** 终止地址ID */
//    @TableField("order_addressGo")
//    private Long orderAddressGo;
//    /** 任务编号（后端生成后存入） */
//    @TableField("order_code")
//    private String orderCode;
//    /** 价格 */
//    @TableField("order_reward")
//    private Long orderReward;
//    /** 发布时间 */
//    @TableField("order_publishTime")
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    private Date orderPublishtime;
//    /** 截至时间 */
//    @TableField("order_deadlineTime")
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    private Date orderDeadlinetime;
//    /** 订单状态 */
//    @TableField("order_status")
//    private String orderStatus;
//    /** 是否删除，当为1 的时候 说明已经删除，0为没删除 */
//    @TableField("isdelete")
//    private long isDelete;
//
//    @TableField("order_remark")
//    private String remark;
//
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @TableField("order_createTime")
//    private Date orderCreateTime;

//    订单基本信息
//    根据userid去 用户表中user_id字段 查询发布者的用户名，手机号，头像
//    根据courierId去 用户表user_id字段 中查询接单布者的用户名，手机号，头像
//    根据taskid去 任务表中task_id字段 查询出该任务的所有字段
//    根据CategoryId去 分类表中CategoryId字段 查询出分类名称
//    根据orderAddressHome去 地址表中address_id字段 查询出起始地址
//    根据orderAddressGo去 地址表中address_id字段 查询出终点地址
//    private Long orderId;
//    private Long userId;
//    private Long courierId;
//    private Long taskId;
//    private Long categoryId;
//    private Long refundId;
//    private Long orderAddressHome;
//    private Long orderAddressGo;
//    private String orderCode;
//    private Double orderReward;
//    private Date orderPublishTime;
//    private Date orderDeadlineTime;
//    private String orderStatus;
//    private int isdelete;
//    private String orderRemark;
//    private Date orderCreateTime;
//    private String publisherUsername;
//    private Long publisherPhoneNumber;
//    private String publisherAvatar;
//    private String courierUsername;
//    private Long courierPhoneNumber;
//    private String courierAvatar;
//    private String taskTitle;
//    private String taskDescription;
//    private Double taskReward;
//    private String taskStatus;
//    private Date taskStartTime;
//    private Date taskDeadlineTime;
//    private String taskUniversity;
//    private String taskSexDemand;
//    private String taskFileUrl;
//    private String taskImageUrl;
//    private String taskGoodsNum;
//    private String taskSize;
//    private String categoryName;
//    private String orderAddressHomeDetail;
//    private String orderAddressGoDetail;
//
//    private TaskVo taskVo;
    private Long orderId;
    private Long userId;
    private Long courierId;
    private Long taskId;
    private Long categoryId;
    private Long refundId;
    private Long orderAddressHome;
    private Long orderAddressGo;
    private String orderCode;
    private Double orderReward;
    private Date orderPublishTime;
    private Date orderDeadlineTime;
    private String orderStatus;
    private int isdelete;
    private String orderRemark;
    private Date orderCreateTime;
    private String publisherUsername;
    private Long publisherPhoneNumber;
    private String publisherAvatar;
    private String courierUsername;
    private Long courierPhoneNumber;
    private String courierAvatar;
    private String taskTitle;
    private String taskDescription;
    private Double taskReward;
    private String taskStatus;
    private Date taskStartTime;
    private Date taskDeadlineTime;
    private String taskUniversity;
    private String taskSexDemand;
    private String taskFileUrl;
    private String taskImageUrl;
    private String taskGoodsNum;
    private String taskSize;
    private String categoryName;
    private Long orderAddressHomeId;
    private String orderAddressHomeRecipientName;
    private Long orderAddressHomePhoneNumber;
    private String orderAddressHomeProvince;
    private String orderAddressHomeCity;
    private String orderAddressHomeDistrict;
    private String orderAddressHomeUniversity;
    private String orderAddressHomeCampus;
    private String orderAddressHomeDetail;
    private Long orderAddressGoId;
    private String orderAddressGoRecipientName;
    private Long orderAddressGoPhoneNumber;
    private String orderAddressGoProvince;
    private String orderAddressGoCity;
    private String orderAddressGoDistrict;
    private String orderAddressGoUniversity;
    private String orderAddressGoCampus;
    private String orderAddressGoDetail;



}

